package com.kyub.spring.gears.services;

import com.kyub.spring.gears.services.DaoService;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: sreghenzi
 * Date: 7-gen-2009
 * Time: 15.03.31
 * To change this template use File | Settings | File Templates.
 */
public interface ControllerDelegateService<T, K> extends DaoService<T> {

    public static String LIST_PAGE_PARAM = "LIST_PAGE_PARAM";

    public static String LIST_SIZE_PARAM = "LIST_SIZE_PARAM";

    public void validate(Object o,org.springframework.validation.Errors errors);

    public List<T> list(K params);

    public Long count(K params);

    public Map<String, K> getFilters();
    
    public void save(T command, K params);

	public void delete(T load ,K params);
	
	public T load(Serializable id,K params) ;


}
